

const  breadcrumb={
    state: {
        breadcrumb: [] /*面包屑*/
    },
    mutations: {
        /*增加*/
        addCrumb(state,current){
            state.breadcrumb.push(current)
        },
        /*更新*/
        updateCrumb(state,index){
            state.breadcrumb=state.breadcrumb.slice(0,index)
        }
    },
    getters: {
        breadcrumb: state=>state.breadcrumb
    },

    actions: {

    }
};
export default breadcrumb
